<?php

class UserService extends BaseService {
   
	
	public function getUserRole($userId) {
		$user = User::model()->findByPk($userId);
		return $user->role;
	}
	
	public function authenticate() {
		return User::model()->validatePassword();
	}
}

